home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 85 / CDMM85_1.ISO / Monopoly Tycoon / MTycoonDemo.exe / data1.cab / scripts / TUTORIAL7 / hub.lua
Encoding:
Text File  |  2001-10-24  |  5.1 KB  |  100 lines

  1. PromptHeading = ID_TUTORIAL_7_OFFSET + 1
  2. g_currentprompt = 0;
  3. g_counter = 0;
  4. Tweaks.numyearsin24hours = 0;
  5.  
  6. -------------------------------------------------------------------------------------------------
  7. -- INITIALISE_Level. Standard level event
  8. -------------------------------------------------------------------------------------------------
  9. function EVENTINITIALISE_Level()
  10.     -- load the building and business file
  11.     C_RunScript("scripts\\maps\\tempmap.lua");
  12. end;
  13.  
  14. -------------------------------------------------------------------------------------------------
  15. -- Level. Standard level event.
  16. -------------------------------------------------------------------------------------------------
  17. function EVENT_Level()
  18.     -- create an initial prompt
  19.     C_TriggerEvent("BlockCam", 1, PACIFIC_AVENUE);
  20.     -- create the initial prompt
  21.     Interface.DisableAllControls();
  22.     Interface.DisableAll3DPicking();
  23.     Interface.DisableCameraControl();
  24.  
  25.     CreatePrompt(1);
  26. end;
  27.  
  28. function CATCHEVENT_InterfacePromptDismiss(a)
  29.     CreatePrompt(a);
  30. end;
  31.  
  32. function CATCHEVENT_TutorialEvent(a)
  33.  
  34.     if g_currentprompt == 7 then
  35.             g_counter = g_counter + 1;
  36.     end;
  37.  
  38.     if g_currentprompt == 7 and g_counter == 4 then
  39.             Interface.DismissPrompt();
  40.             Interface.DisableControl(TUT_PCP_TOGGLE_OPTIONS_RIGHT);
  41.         end;            
  42.  
  43. end;
  44.  
  45. -- prompt manager
  46. function CreatePrompt(a)
  47.     g_currentprompt = a;
  48.     body = a+PromptHeading;
  49.     if a == 1 then
  50.         Interface.CreatePrompt(PromptHeading,body, a+1); --"Every day certain things happen that will affect your bank balance. You will need to be prepared for them if you are to succeed in the city.", a+1);
  51.         Interface.PositionPrompt(0,140);
  52.     elseif a == 2 then
  53.         Interface.CreatePrompt(PromptHeading,body, a+1); --"This panel shows you when major money events occur.", a+1);
  54.         Interface.CreateEventList();
  55.         Interface.AddArrow(366,219);
  56.     elseif a == 3 then
  57.         Interface.CreatePrompt(PromptHeading,body, a+1); --"At 6:00am all of your buildings restock with commodities, pay rent and utility costs. This is balanced by rent that you receive from your apartments and land rent from opponents businesses on your blocks...", a+1);
  58.         Interface.AddArrow( 338, 99 );
  59.     elseif a == 4 then
  60.         Interface.CreatePrompt(PromptHeading,body, a+1); --"...also, if you own any of the Railroads or Utilities, any income collected will be added...", a+1);
  61.         Interface.AddArrow( 338, 99 );
  62.     elseif a == 5 then
  63.         Interface.CreatePrompt(PromptHeading,body, a+1); --"To summarise, you receive income from renting your apartments, land rent from opponents businesses on your blocks and income from Railroads and Utilities...",a+1);
  64.     elseif a == 6 then
  65.         Interface.CreatePrompt(PromptHeading,body, a+1); --"Your costs include restocking of stores, land rent for businesses on blocks you do not own...",a+1);
  66.     elseif a == 7 then
  67.         Interface.CreateMessage(PromptHeading,body, a+1); --"You do not have to work this out for yourself. Click on the blue button until you are viewing the '6-00am Cost Prediction'. ", a+1);
  68.         Interface.AddArrow(180,315);
  69.         Interface.EnableControl(TUT_PCP_TOGGLE_OPTIONS_RIGHT);
  70.     elseif a == 8 then
  71.         Interface.CreatePrompt(PromptHeading,body, a+1); --"If nothing were to change, this is the amount you will pay at 6.00am. You can also see what the other players are going to pay, which can be very useful information.", a+1);
  72.         Interface.AddArrow(180, 338);
  73.     elseif a == 9 then
  74.         Interface.CreatePrompt(PromptHeading,body, a+1); --"Bear in mind that as you sell stock the prediction will rise - you have more stock to replace.", a+1);
  75.         Interface.AddArrow(180, 338);
  76.     elseif a == 10 then
  77.         Interface.CreatePrompt(PromptHeading,body, a+1); --"Once the day gets under way, money will start coming in as you make sales from your stores. As the day passes you should check your stores to make sure that stock is selling through.", a+1);
  78.         Interface.AddArrow(336, 134);
  79.     elseif a == 11 then
  80.         Interface.CreatePrompt(PromptHeading,body, a+1); --"At 6pm voting occurs. This is only relevant if you play the weakest link or first to mayor scenarios.", a+1);
  81.         Interface.AddArrow(334, 158);
  82.     elseif a == 12 then
  83.         Interface.CreatePrompt(PromptHeading,body, a+1); --"As the daytime stores close the evening entertainment kicks off. Your nighttime businesses will now start drawing in customers. ", a+1);
  84.         Interface.AddArrow(333, 194);
  85.     elseif a == 13 then
  86.         Interface.CreatePrompt(PromptHeading,body, a+1); --"IMPORTANT! At 12:00am the bank carries out a credit check. If your bank balance is negative you will be warned that you must be in credit by the following midnight. Failure to do so will result in you being declared bankrupt! ", a+1);
  87.         Interface.AddArrow(329, 214);
  88.     elseif a == 14 then
  89.         Interface.CreatePrompt(PromptHeading,body, a+1); --"That's it. Keep these times in mind when playing and you shouldn't go too far wrong! ", a+1);
  90.         Interface.AddArrow(46, 336);
  91.     elseif a == 15 then
  92.         Interface.CreatePrompt(PromptHeading,body, a+1); --"That's it. Keep these times in mind when playing and you shouldn't go too far wrong! ", a+1);
  93.         Interface.AddArrow(550, 30);
  94.     elseif a == 16 then
  95.         Game.End(true);
  96.     end;
  97. end;
  98.  
  99.  
  100.